import request from '@/utils/request'

// 查询作业班组列表
export function listTeam(query) {
  return request({
    url: '/task/team/list',
    method: 'get',
    params: query
  })
}

// 查询作业班组详细
export function getTeam(workTeamId) {
  return request({
    url: '/task/team/' + workTeamId,
    method: 'get'
  })
}

// 新增作业班组
export function addTeam(data) {
  return request({
    url: '/task/team',
    method: 'post',
    data: data
  })
}

// 修改作业班组
export function updateTeam(data) {
  return request({
    url: '/task/team',
    method: 'put',
    data: data
  })
}

// 删除作业班组
export function delTeam(workTeamId) {
  return request({
    url: '/task/team/' + workTeamId,
    method: 'delete'
  })
}

// 导出作业班组
export function exportTeam(query) {
  return request({
    url: '/task/team/export',
    method: 'get',
    params: query
  })
}

export function getTeamCombo(query) {
  return request({
    url: "/task/team/combo",
    method: "get",
    params: query
  });
}